
import NNImporter from './Internals/NNImporter';
import ONNXImporter from './Internals/ONNXImporter';


export function load() { }

export function unload() { }

// eslint-disable-next-line @typescript-eslint/no-namespace
export namespace methods {
    export function registerNNImporter() {
        return register(['.nn'], NNImporter);
    }

    export function registerONNXImporter() {
        return register(['.onnx'], ONNXImporter);
    }


    export function register(extname: string[], importer: new (...args: any[]) => object) {
        return { extname: extname, importer: importer };
    }
}
